package cqie.edu.bootexperiment3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cqie.edu.bootexperiment3.domain.TCustomer;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

/**
* @author 86182
* @description 针对表【t_customer】的数据库操作Mapper
* @createDate 2025-03-25 11:48:24
* @Entity cqie.edu.bootexperiment3.domain.TCustomer
*/
public interface TCustomerMapper extends BaseMapper<TCustomer> {
    //229970608 何慧君
    @Insert("INSERT INTO t_customer(id, username, job, phone, sex) " +
            "VALUES (#{id}, #{username}, #{job}, #{phone}, #{sex})")
    int insertUser(TCustomer customer);  // 直接使用属性名，如 #{id} 对应 customer.id
}




